package cn.tedu.qxhouserent.house.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

@Data
@Accessors(chain = true)
public class SectionUpdateInfoParam implements Serializable {

    @NotEmpty(message = "必须提交地名")
    @ApiModelProperty(value = "地名",required = true,example = "石家庄市")
    private String name;
    @NotNull(message = "必须提交父级ID")
    @Range(min = 0,message = "父级ID最小为0")
    @ApiModelProperty(value = "父级ID",required = true)
    private Long parentId;
    @NotNull(message = "必须提交层级")
    @Range(min = 1,message = "必须提交正确的层级，最小为1")
    @ApiModelProperty(value = "层级",required = true)
    private Integer depth;
    @NotNull(message = "必须提交是否为父级")
    @ApiModelProperty(value = "是否为父级",required = true)
    private Integer isParent;
    @NotNull(message = "必须提交是否显示")
    @Range(min = 0,max = 1)
    @ApiModelProperty(value = "是否显示",required = true)
    private Integer isDisplay;
}
